<?php

use Workerman\Worker;

$worker = new Worker('tcp://0.0.0.0:2222');
// 进程数配置成cpu核数-1，保留一个cpu给ab进程
$worker->name='apiServ_tcp';
$worker->count=3;
$worker->onMessage = function($connection, $data)
{
    $connection->send("HTTP/1.1 200 OK\r\nConnection: keep-alive\r\nServer: workerman\1.1.4\r\n\r\nhello");
    return;
};
